import 'package:flutter/material.dart';
import 'package:xindong/common/xindong_sezhi.dart';

// 公共红点
class XinDongCommonDot extends StatelessWidget {
  final Color? color;
  final bool hidden;
  final double size;

  const XinDongCommonDot({Key? key, this.color, this.hidden = false, this.size = 8.0}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    if (hidden) {
      return const SizedBox();
    }
    return Container(
      width: size,
      height: size,
      decoration: BoxDecoration(
        color: color ?? DZColors.statusIncorrectColor,
        borderRadius: BorderRadius.all(Radius.circular(size)),
      ),
    );
  }
}
